#region Using
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
#endregion Using

namespace CY.GFive.Core.Business
{
	public class AccidentRcd : Business.BusinessBase<AccidentRcd, int>
	{
		#region Fields and Properties

		private String leaderName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String LeaderName
		{
			get { return leaderName; }
			set
			{
				if (value != leaderName)
				{
					MarkChanged("LeaderName");
					leaderName = value;
				}
			}
		}

		private String reporterName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ReporterName
		{
			get { return reporterName; }
			set
			{
				if (value != reporterName)
				{
					MarkChanged("ReporterName");
					reporterName = value;
				}
			}
		}

		private String accinenterName = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String AccinenterName
		{
			get { return accinenterName; }
			set
			{
				if (value != accinenterName)
				{
					MarkChanged("AccinenterName");
					accinenterName = value;
				}
			}
		}

		private String reason = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String Reason
		{
			get { return reason; }
			set
			{
				if (value != reason)
				{
					MarkChanged("Reason");
					reason = value;
				}
			}
		}

		private DateTime reportDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime ReportDate
		{
			get { return reportDate; }
			set
			{
				if (value != reportDate)
				{
					MarkChanged("ReportDate");
					reportDate = value;
				}
			}
		}

		private DateTime accidentDate = DateTime.MinValue;
		/// <summary>
		/// 
		/// </summary>
		public DateTime AccidentDate
		{
			get { return accidentDate; }
			set
			{
				if (value != accidentDate)
				{
					MarkChanged("AccidentDate");
					accidentDate = value;
				}
			}
		}

		private String clsRoomCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String ClsRoomCode
		{
			get { return clsRoomCode; }
			set
			{
				if (value != clsRoomCode)
				{
					MarkChanged("ClsRoomCode");
					clsRoomCode = value;
				}
			}
		}

		private String devUnitCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String DevUnitCode
		{
			get { return devUnitCode; }
			set
			{
				if (value != devUnitCode)
				{
					MarkChanged("DevUnitCode");
					devUnitCode = value;
				}
			}
		}

		private String devCode = String.Empty;
		/// <summary>
		/// 
		/// </summary>
		public String DevCode
		{
			get { return devCode; }
			set
			{
				if (value != devCode)
				{
					MarkChanged("DevCode");
					devCode = value;
				}
			}
		}

		#endregion Fields and Properties

		#region Constructors

		public AccidentRcd()
		{
		}

		#endregion Constructors

		#region Base overrides

		protected override void ValidationRules()
		{
		}

		protected override AccidentRcd DataSelect(int id)
		{
			return Services.DALService.AccidentRcdService.Select(id);
		}

		protected override void DataUpdate()
		{
			Services.DALService.AccidentRcdService.Update(this);
		}

		protected override void DataInsert()
		{
			Services.DALService.AccidentRcdService.Insert(this);
		}

		protected override void DataDelete()
		{
			Services.DALService.AccidentRcdService.Delete(this);
		}

		#endregion Base overrides
	}
}
